package com.luoluo.pojo.builder;

import com.luoluo.pojo.LeaveWord;
import javafx.util.Builder;

import java.util.Date;

public class LeaveWordBuilder implements Builder {
    private LeaveWord leaveWord= new LeaveWord();

    public LeaveWordBuilder builderId(Integer id) {
        this.leaveWord.setId(id);
        return this;
    }

    public LeaveWordBuilder builderLeaveWord(String leaveWord) {
        this.leaveWord.setLeaveWord(leaveWord);
        return this;
    }

    public LeaveWordBuilder builderEffective(Integer effective) {
        this.leaveWord.setEffective(effective);
        return this;
    }

    public LeaveWordBuilder builderTime(Date time) {
        this.leaveWord.setTime(time);
        return this;
    }

    @Override
    public LeaveWord build() {
        return this.leaveWord;
    }
}